import { createStore, applyMiddleware } from 'redux'
import reduxLogger from 'redux-logger' // redux日志中间件
import reduxThunk from 'redux-thunk' // 异步派发中间件
import reduxPromise from 'redux-promise' // 异步派发中间件
import reducer from './reducers/index'
const store = createStore(reducer, applyMiddleware(reduxThunk, reduxPromise, reduxLogger))

export default store
